﻿<editpartial controller-name='floatmenuListCtrl' template-url='app/common/floatmenu/floatMenu-list.tpl.html' params='floatMenuOwner' callback="init()"></editpartial>



<!--########################  invoice memo edit  ######################## s -->
<div id="box" class="box"></div>
<div id="boxEdit" class="box2">
<button type="button" class="close" aria-label="Close"><span aria-hidden="true" ng-click="editMemoClose()">&times;</span></button>
<p id="lblBoxTitle" class="bg-primary" style="margin-top:20px;margin-left:10px;margin-right:10px;font-size:medium;"></p>
<label hidden id="hiddenInvId"></label>
<textarea id="txtBox" class="form-control" style="resize:none;margin-left:10px;margin-right:10px" ng-model="selectText"></textarea>
<button class="btn btn-primary " style="margin-left:250px;margin-top:5px" ng-click="editMemoSave()">Save</button>
<button class="btn btn-default " style="float:right;margin-right:10px;margin-top:5px" ng-click="editMemoClose()">Close</button>
</div>
<div id="boxEditBatch" class="box2">
<button type="button" class="close" aria-label="Close"><span aria-hidden="true" ng-click="batcheditMemoClose()">&times;</span></button>
<p id="batchlblBoxTitle" class="bg-primary" style="margin-top:20px;margin-left:10px;margin-right:10px;font-size:medium;"></p>
<label hidden id="batchhiddenInvId"></label>
<textarea id="batchtxtBox" class="form-control" style="resize:none;margin-left:10px;margin-right:10px"></textarea>
<button class="btn btn-primary " style="margin-left:250px;margin-top:5px" ng-click="batcheditMemoSave()">Save</button>
<button class="btn btn-default " style="float:right;margin-right:10px;margin-top:5px" ng-click="batcheditMemoClose()">Close</button>
</div>
<!--########################  invoice memo edit  ######################## e -->

<div class="form-group col-md-12" style="padding-left:0px; padding-right:0px;">
<!--##################################  button  ################################## s -->
<div style="height:30px; margin-bottom:10px;">
    <div style="float:left">
        <button type="button" class="btn-filter" ng-click="export()">
            <span class="fa fa-download" style="font-weight:bold">&nbsp;&nbsp;Export</span>
        </button>
    </div>
    <div style="float:left">
        <button type="button" class="btn-filter" style="width:120px;margin-left:10px" ng-click="batcheditMemoShow()">
            <p class="glyphicon glyphicon-pencil"></p>&nbsp;&nbsp;Invoice Memo
        </button>
    </div>
    <div style="float:left">
        <button type="button" class="btn-filter" style="margin-left:10px" ng-click="changetab('ptp')">
            <img src="~/../Content/images/PTP.png" />&nbsp;&nbsp;PTP
        </button>
    </div>
    <div style="float:left">
        <button type="button" class="btn-filter" style="width:100px;margin-left:10px" ng-click="changetab('notice')">
            <img src="~/../Content/images/Notice.png" />&nbsp;&nbsp;Payment
        </button>
    </div>

    <div style="float:right">
        <button type="button" class="btn-filter" ng-click="openFilter()">
            <img src="~/../Content/images/Search.png" />&nbsp;&nbsp;Search
        </button>
    </div>
</div>
<!--##################################  button  ################################## e -->
    <!--##################################  search condition  ################################## s -->
    <div id="divAgingSearch" class="tag col-md-12" style="display:none">
        <em></em>
        <div class="row" style="height:10px"></div>
        <div class="form-group col-md-12">
            <div class="row">
                <div style="float:left; padding-right:10px;">
                    <label for="inputCustCode" style="font-size:12px;">
                        Customer Code
                    </label>
                    <div style="width:180px">
                        <input id="inputCustCode" class="form-control input-sm" ng-model="custCode" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputCustName" style="font-size:12px;">
                        Customer Name
                    </label>
                    <div style="width:180px">
                        <input id="inputCustName" class="form-control input-sm" ng-model="custName" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputbillGroupCode" style="font-size:12px;">
                        Factory Group Code
                    </label>
                    <div style="width:180px">
                        <input id="inputbillGroupCode" class="form-control input-sm" ng-model="billGroupCode" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputbillGroupName" style="font-size:12px;">
                        Factory Group Name
                    </label>
                    <div style="width:180px">
                        <input id="inputbillGroupName" class="form-control input-sm" ng-model="billGroupName" />
                    </div>
                </div>
                <div style="float:left">
                    <label style="height:12px"></label>
                    <div>
                        <button type="button" class="filter-button" ng-click="resetSearch()">
                            Clear
                        </button>
                        <button type="button" class="filter-button" ng-click="searchCollection()">
                            Search
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group col-md-12">
            <div class="row">
                <div style="float:left; padding-right:10px;">
                    <label for="inputInvoiceNum" style="font-size:12px;">
                        Invoice Num
                    </label>
                    <div style="width:180px">
                        <input id="inputInvoiceNum" class="form-control input-sm" ng-model="invoiceNum" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputPoNum" style="font-size:12px;">
                        PO Num
                    </label>
                    <div style="width:180px">
                        <input id="inputPoNum" class="form-control input-sm" ng-model="poNum" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputSoNum" style="font-size:12px;">
                        SO Num
                    </label>
                    <div style="width:180px">
                        <input id="inputSoNum" class="form-control input-sm" ng-model="soNum" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputRBO" style="font-size:12px;">
                        RBO
                    </label>
                    <div style="width:180px">
                        <input id="inputRBO" class="form-control input-sm" ng-model="rbo" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputCreditTerm" style="font-size:12px;">
                        Credit Term
                    </label>
                    <div style="width:180px">
                        <input id="inputCreditTerm" class="form-control input-sm" ng-model="creditTerm" />
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group col-md-12">
            <div class="row">
                <div style="float:left; padding-right:10px;">
                    <label for="inputDisplayClosed" style="font-size:12px;">
                        Display Closed
                    </label>
                    <div style="width:180px">
                        <select id="DisplayClosed" class="form-control input-sm" ng-model="displayClosed" ng-options="d.id as d.detailName for d in displaylist"></select>
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputLegal" style="font-size:12px;">
                        Legal Entity
                    </label>
                    <div style="width:180px">
                        <select id="Legal" class="form-control input-sm" ng-model="legal" ng-options="d.legalEntity as d.legalEntity for d in legallist">
                            <option value="">All</option>
                        </select>
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputDocuType" style="font-size:12px;">
                        Document Type
                    </label>
                    <div style="width:180px">
                        <select id="DocuType" class="form-control input-sm" ng-model="docuType" ng-options="a.detailValue as a.detailName for a in docuTypelist">
                            <option value="">All</option>
                        </select>
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputInvoiceStates" style="font-size:12px;">
                        Invoice Status
                    </label>
                    <div style="width:180px">
                        <select id="inputInvoiceStates" class="form-control input-sm" ng-model="states" ng-options="a.detailValue as a.detailName for a in istatuslist">
                            <option value="">All</option>
                        </select>
                    </div>
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputInvoiceTrackStates" style="font-size:12px;">
                        Invoice Track Status
                    </label>
                    <div style="width:180px">
                        <select id="inputInvoiceTrackStates" class="form-control input-sm" ng-model="trackStates" ng-options="a.detailValue as a.detailName for a in invoiceTrackStates">
                            <option value="">All</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group col-md-12">
            <div class="row">
                <div style="float:left; padding-right:10px;">
                    <label for="inputPtpDateF" style="font-size:12px;">
                        PTP Date From:
                    </label>
                    <div style="width:180px" datetimepicker value="ptpDateF" readonly="true" />
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputPtpDateT" style="font-size:12px;">
                        To:
                    </label>
                    <div style="width:180px" datetimepicker value="ptpDateT" readonly="true" />
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputMemo" style="font-size:12px;">
                        Invoice Memo
                    </label>
                    <div style="width:370px">
                        <input id="inputMemo" class="form-control input-sm" ng-model="memo" />
                    </div>
                </div>
                <div style="float:left; padding-right:10px;" ng-show="showCollector">
                    <label for="inputDocuType" style="font-size:12px;">
                        Collector
                    </label>
                    <div style="width:180px">
                        <select id="Collector" class="form-control input-sm" ng-model="collector" ng-options="a.collector as a.collector for a in collectorList">
                            <option value="">All</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group col-md-12">
            <div class="row">
                <div style="float:left; padding-right:10px;">
                    <label for="inputInvoiceDateF" style="font-size:12px;">
                        Invoice Date From:
                    </label>
                    <div style="width:180px" datetimepicker value="invoiceDateF" readonly="true" />
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputInvoiceDateT" style="font-size:12px;">
                        To:
                    </label>
                    <div style="width:180px" datetimepicker value="invoiceDateT" readonly="true" />
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputDueDateF" style="font-size:12px;">
                        Due Date From:
                    </label>
                    <div style="width:180px" datetimepicker value="dueDateF" readonly="true" />
                </div>
                <div style="float:left; padding-right:10px;">
                    <label for="inputDueDateT" style="font-size:12px;">
                        To:
                    </label>
                    <div style="width:180px" datetimepicker value="dueDateT" readonly="true" />
                </div>
            </div>
        </div>
    </div>
    <!--##################################  search condition  ################################## e -->



    <div class="grid-style" ui-grid="invoiceList" ui-grid-resize-columns ui-grid-selection ui-grid-edit ui-grid-move-columns ui-grid-pinning>
        <div class="footer-statistics">
            <div style="float:right">
                <label style="padding-right:20px" id="footcalcu"></label>
            </div>
        </div>
    </div>

    <div class="form-group col-md-12">
        <div class="row">
            <div style="float:left; margin-right:20px;">
                <label style="margin-top:27px; margin-bottom:14px; height:29px;">Show&nbsp;<span>{{fromItem}}</span>&nbsp;to&nbsp;<span>{{toItem}}</span>&nbsp;of&nbsp;<span>{{totalNum}}</span>&nbsp;items</label>
            </div>
            <div style="float:left">
                <pagination max-size="maxSize" items_per_page="iperexecute" total-items="ttexecute"
                            ng-model="curpexecute" ng-change="executepChanged()" class="pagination-sm" boundary-links="true"></pagination>
            </div>
            <div style="float:right">
                <div style="float:left">
                    <label style="margin-top: 27px; margin-bottom: 14px; margin-right:2px;">Page size:</label>
                </div>
                <div style="float:left">
                    <select id="psexecute" name="psexecute" ng-model="slexecute" ng-options="s.id as s.levelName for s in levelList"
                            ng-change="pschangeexecute(slexecute)" class="form-control input-sm" style="margin-top: 20px; margin-bottom: 20px;"></select>
                </div>
            </div>
        </div>
    </div>
</div>
